package leetcode_1401_1500;

public class LeeCode_1470 {
    public static void main(String[] args) {

    }
    private static int[] shuffle(int[] nums, int n) {
        int[] ans = new int[n * 2];
        int i1 = 0, i2 = n, i = 0;
        while (i2 < n * 2){
            ans[i] = nums[i1];
            i++;
            ans[i] = nums[i2];
            i++;
            i1++;
            i2++;
        }
        return ans;
    }
}